GET v{version}/{lang}/Hotel/GetHotelsInfo?passengerCount={passengerCount}&dateFrom={dateFrom}&dateTo={dateTo}&hotelIdList[0]={hotelIdList[0]}&hotelIdList[1]={hotelIdList[1]}¤cy={currency}&wp={wp}
Gets hotels info. Shows only hotels with full availability
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
passengerCount | integer |
Required |
|
dateFrom | date |
Required |
|
dateTo | date |
Required |
|
hotelIdList | Collection of integer |
Required |
|
lang | string |
Required |
|
currency | string |
Default value is ISK |
|
wp | string |
Default value is GG |
|
version |
The requested API version |
string |
Required Default value is 1.0 |
Body Parameters
None.
Response Information
Resource Description
Collection of PropertySearchModelName | Description | Type | Additional information |
---|---|---|---|
Contact |
Contact for the property |
ContactModel |
None. |
Description |
Description of the property |
string |
None. |
Id |
Identifier of the property |
integer |
None. |
Location |
Location of the property |
LocationSearchModel |
None. |
Name |
Name of the property |
string |
None. |
PropertyTypeName |
Name of the property type |
string |
None. |
PriceFrom |
Price from |
integer |
None. |
Rooms |
Gets or Sets Rooms |
Collection of RoomSearchModel |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Contact": { "Email": "sample string 1", "Fax": "sample string 2", "Mobile": "sample string 3", "Phone": "sample string 4", "SecondaryEmail": "sample string 5", "Url": "sample string 6" }, "Description": "sample string 1", "Id": 1, "Location": { "Address": "sample string 1", "City": "sample string 2", "PostalCode": "sample string 3", "MapUrl": "sample string 4" }, "Name": "sample string 2", "PropertyTypeName": "sample string 3", "PriceFrom": 4, "Rooms": [ { "AvailableQuantity": 1, "Description": "sample string 1", "Id": 1, "MaxOccupancy": 1, "Name": "sample string 2", "NumberOfNights": 1, "Price": 1.1, "RoomTypeName": "sample string 3", "BreakfastAvailable": true, "BreakfastIncluded": true, "TotalBreakfastPrice": 1.1, "ExtraBed": true, "ExtraBedPrice": 1.1, "ExtraBedQuantity": 1 }, { "AvailableQuantity": 1, "Description": "sample string 1", "Id": 1, "MaxOccupancy": 1, "Name": "sample string 2", "NumberOfNights": 1, "Price": 1.1, "RoomTypeName": "sample string 3", "BreakfastAvailable": true, "BreakfastIncluded": true, "TotalBreakfastPrice": 1.1, "ExtraBed": true, "ExtraBedPrice": 1.1, "ExtraBedQuantity": 1 } ] }, { "Contact": { "Email": "sample string 1", "Fax": "sample string 2", "Mobile": "sample string 3", "Phone": "sample string 4", "SecondaryEmail": "sample string 5", "Url": "sample string 6" }, "Description": "sample string 1", "Id": 1, "Location": { "Address": "sample string 1", "City": "sample string 2", "PostalCode": "sample string 3", "MapUrl": "sample string 4" }, "Name": "sample string 2", "PropertyTypeName": "sample string 3", "PriceFrom": 4, "Rooms": [ { "AvailableQuantity": 1, "Description": "sample string 1", "Id": 1, "MaxOccupancy": 1, "Name": "sample string 2", "NumberOfNights": 1, "Price": 1.1, "RoomTypeName": "sample string 3", "BreakfastAvailable": true, "BreakfastIncluded": true, "TotalBreakfastPrice": 1.1, "ExtraBed": true, "ExtraBedPrice": 1.1, "ExtraBedQuantity": 1 }, { "AvailableQuantity": 1, "Description": "sample string 1", "Id": 1, "MaxOccupancy": 1, "Name": "sample string 2", "NumberOfNights": 1, "Price": 1.1, "RoomTypeName": "sample string 3", "BreakfastAvailable": true, "BreakfastIncluded": true, "TotalBreakfastPrice": 1.1, "ExtraBed": true, "ExtraBedPrice": 1.1, "ExtraBedQuantity": 1 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfPropertySearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Models"> <PropertySearchModel> <Contact> <Email>sample string 1</Email> <Fax>sample string 2</Fax> <Mobile>sample string 3</Mobile> <Phone>sample string 4</Phone> <SecondaryEmail>sample string 5</SecondaryEmail> <Url>sample string 6</Url> </Contact> <Description>sample string 1</Description> <Id>1</Id> <Location> <Address>sample string 1</Address> <City>sample string 2</City> <MapUrl>sample string 4</MapUrl> <PostalCode>sample string 3</PostalCode> </Location> <Name>sample string 2</Name> <PriceFrom>4</PriceFrom> <PropertyTypeName>sample string 3</PropertyTypeName> <Rooms> <RoomSearchModel> <AvailableQuantity>1</AvailableQuantity> <BreakfastAvailable>true</BreakfastAvailable> <BreakfastIncluded>true</BreakfastIncluded> <Description>sample string 1</Description> <ExtraBed>true</ExtraBed> <ExtraBedPrice>1.1</ExtraBedPrice> <ExtraBedQuantity>1</ExtraBedQuantity> <Id>1</Id> <MaxOccupancy>1</MaxOccupancy> <Name>sample string 2</Name> <NumberOfNights>1</NumberOfNights> <Price>1.1</Price> <RoomTypeName>sample string 3</RoomTypeName> <TotalBreakfastPrice>1.1</TotalBreakfastPrice> </RoomSearchModel> <RoomSearchModel> <AvailableQuantity>1</AvailableQuantity> <BreakfastAvailable>true</BreakfastAvailable> <BreakfastIncluded>true</BreakfastIncluded> <Description>sample string 1</Description> <ExtraBed>true</ExtraBed> <ExtraBedPrice>1.1</ExtraBedPrice> <ExtraBedQuantity>1</ExtraBedQuantity> <Id>1</Id> <MaxOccupancy>1</MaxOccupancy> <Name>sample string 2</Name> <NumberOfNights>1</NumberOfNights> <Price>1.1</Price> <RoomTypeName>sample string 3</RoomTypeName> <TotalBreakfastPrice>1.1</TotalBreakfastPrice> </RoomSearchModel> </Rooms> </PropertySearchModel> <PropertySearchModel> <Contact> <Email>sample string 1</Email> <Fax>sample string 2</Fax> <Mobile>sample string 3</Mobile> <Phone>sample string 4</Phone> <SecondaryEmail>sample string 5</SecondaryEmail> <Url>sample string 6</Url> </Contact> <Description>sample string 1</Description> <Id>1</Id> <Location> <Address>sample string 1</Address> <City>sample string 2</City> <MapUrl>sample string 4</MapUrl> <PostalCode>sample string 3</PostalCode> </Location> <Name>sample string 2</Name> <PriceFrom>4</PriceFrom> <PropertyTypeName>sample string 3</PropertyTypeName> <Rooms> <RoomSearchModel> <AvailableQuantity>1</AvailableQuantity> <BreakfastAvailable>true</BreakfastAvailable> <BreakfastIncluded>true</BreakfastIncluded> <Description>sample string 1</Description> <ExtraBed>true</ExtraBed> <ExtraBedPrice>1.1</ExtraBedPrice> <ExtraBedQuantity>1</ExtraBedQuantity> <Id>1</Id> <MaxOccupancy>1</MaxOccupancy> <Name>sample string 2</Name> <NumberOfNights>1</NumberOfNights> <Price>1.1</Price> <RoomTypeName>sample string 3</RoomTypeName> <TotalBreakfastPrice>1.1</TotalBreakfastPrice> </RoomSearchModel> <RoomSearchModel> <AvailableQuantity>1</AvailableQuantity> <BreakfastAvailable>true</BreakfastAvailable> <BreakfastIncluded>true</BreakfastIncluded> <Description>sample string 1</Description> <ExtraBed>true</ExtraBed> <ExtraBedPrice>1.1</ExtraBedPrice> <ExtraBedQuantity>1</ExtraBedQuantity> <Id>1</Id> <MaxOccupancy>1</MaxOccupancy> <Name>sample string 2</Name> <NumberOfNights>1</NumberOfNights> <Price>1.1</Price> <RoomTypeName>sample string 3</RoomTypeName> <TotalBreakfastPrice>1.1</TotalBreakfastPrice> </RoomSearchModel> </Rooms> </PropertySearchModel> </ArrayOfPropertySearchModel>